<?php
/**
 * Each param should implement this interface
 *
 * @author Ishtiaque Shahrier <md.ishtiaque@newgenbd.net>
 * @package search
 * @subpackage libraries
 */
interface i_param_l_search {
    /**
     * @return int
     */
    public function get_id();
    /**
     * @return string
     */
    public function get_option();
    /**
     * @return string
     */
    public function get_label();
    /**
     * @return string
     */
    public function get_type();

    /**
     * Return field selection string or NULL if none.
     * An example line can be "weight,prince"
     * @return string|NULL
     */
    public function get_select_line();
    /**
     * Return join string or NULL if none.
     * An example line can be "INNER JOIN table as t1 on t1.id=products.id"
     * @return string|NULL
     */
    public function get_join_line();
    /**
     * Return where string or NULL if none.
     * An example line can be "price>10.50"
     * @return string|NULL
     */
    public function get_where_line();
    /**
     * Return order string or NULL if none.
     * An example line can be "price DESC"
     * @return string|NULL
     */
    public function get_order_line();
    

}
?>